@charset 'utf-8';
@import url(../styles/common.less);
@import url(../styles/footer.less);
body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
ol,
p {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
a {
  color: black;
  text-decoration: none;
}
.clear:after {
  content: "";
  display: block;
  clear: both;
}
html,
body {
  width: 100%;
  height: 100%;
}
.bx {
  width: 1226px;
  margin-right: auto;
  margin-left: auto;
}
.shopping {
  > .header {
    font-size: 12px;
    border-bottom: 2px solid #ff6700;
    background: #fff;
    color: #b0b0b0;
    position: relative;
    z-index: 20;
    height: 100px;
    > .bx {
      .header-logo {
        width: 93px;
        height: 48px;
        margin-top: 26px;
        float: left;
        > img {
          height: 48px;
        }
      }
      .header-left {
        height: 48px;
        float: left;
        margin-top: 26px;
        > h2 {
          float: left;
          line-height: 48px;
          margin-bottom: 0;
          font-size: 28px;
          color: #424242;
          font-weight: 400;
        }
        > p {
          float: left;
          height: 20px;
          line-height: 20px;
          margin-top: 20px;
          margin-left: 15px;
          color: #757575;
        }
      }
      .header-right {
        position: relative;
        float: right;
        height: 40px;
        line-height: 40px;
        margin-top: 30px;
        > a {
          padding: 0 5px;
          text-align: center;
          color: #757575;
        }
      }
    }
  }
  > .main {
    padding: 38px 0;
    background: #f5f5f5;
    > .bx {
      > .main-container {
        > .shopping-list {
          background-color: #fff;
          > .list-head {
            height: 70px;
            line-height: 70px;
            padding-right: 26px;
            color: #424242;
            > .check {
              float: left;
              width: 110px;
              > input {
                display: inline-block;
                width: 18px;
                height: 18px;
                line-height: 18px;
                border: 1px solid #e0e0e0;
                margin-left: 24px;
                background-color: #fff;
                color: #fff;
                font-size: 20px;
                text-align: center;
                vertical-align: middle;
                position: relative;
                top: -1px;
                cursor: pointer;
                margin-right: 15px;
              }
            }
            > .kong,
            .product-name,
            .num,
            .price,
            .total,
            .action {
              width: 120px;
              float: left;
            }
            > .product-name {
              width: 380px;
            }
            > .price {
              width: 140px;
              padding-right: 18px;
              text-align: center;
              color: #424242;
            }
            > .num {
              width: 150px;
              text-align: center;
              color: #424242;
            }
            > .total {
              width: 120px;
              padding-right: 81px;
              text-align: right;
            }
            > .action {
              width: 80px;
              text-align: center;
            }
          }
          > .list-body {
            > .list-item {
              > .item-box {
                padding: 15px 26px 15px 0;
                border-top: 1px solid #e0e0e0;
                > .item-content {
                  display: table;
                  border-collapse: collapse;
                  border-spacing: 0;
                  > .item-row {
                    display: table-row;
                    > .check {
                      display: table-cell;
                      vertical-align: middle;
                      width: 110px;
                      > input {
                        display: inline-block;
                        width: 18px;
                        height: 18px;
                        line-height: 18px;
                        border: 1px solid #e0e0e0;
                        margin-left: 24px;
                        background-color: #fff;
                        color: #fff;
                        font-size: 20px;
                        text-align: center;
                        vertical-align: middle;
                        position: relative;
                        top: -1px;
                        cursor: pointer;
                        margin-right: 15px;
                      }
                    }
                    > .img {
                      width: 80px;
                      height: 80px;
                      padding-right: 40px;
                      overflow: hidden;
                      > a {
                        > img {
                          width: 80px;
                          height: 80px;
                        }
                      }
                    }
                    > .name {
                      display: table-cell;
                      vertical-align: middle;
                      width: 380px;
                      > h3 {
                        line-height: 1;
                        margin-top: 8px;
                        margin-bottom: 8px;
                        font-size: 18px;
                        font-weight: 400;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        overflow: hidden;
                      }
                    }
                    > .price {
                      display: table-cell;
                      vertical-align: middle;
                      width: 140px;
                      padding-right: 18px;
                      text-align: center;
                      color: #424242;
                    }
                    > .num-box {
                      display: table-cell;
                      vertical-align: middle;
                      > .num {
                        width: 148px;
                        height: 38px;
                        border: 1px solid #e0e0e0;
                        text-align: center;
                        background-color: #fff;
                        position: relative;
                        zoom: 1;
                        > a {
                          float: left;
                          width: 38px;
                          height: 38px;
                          line-height: 38px;
                          color: #757575;
                          font-size: 20px;
                          transition: all 0.3s;
                        }
                        > input {
                          float: left;
                          width: 72px;
                          height: 38px;
                          line-height: 38px;
                          padding: 0;
                          border-width: 0;
                          color: #424242;
                          font-size: 16px;
                          text-align: center;
                        }
                      }
                    }
                    > .total {
                      display: table-cell;
                      vertical-align: middle;
                      color: #ff6700;
                      font-size: 16px;
                      width: 120px;
                      padding-right: 81px;
                      text-align: right;
                    }
                    > .action {
                      display: table-cell;
                      vertical-align: middle;
                      > a {
                        display: inline-block;
                        width: 80px;
                        line-height: 24px;
                        text-align: center;
                        border-radius: 12px;
                        color: #757575;
                        font-size: 16px;
                        transition: all 0.3s;
                      }
                    }
                  }
                }
              }
            }
          }
          > .nothing {
            height: 20px;
            background-color: #f5f5f5;
          }
          > .settlement {
            height: 50px;
            font-size: 14px;
            text-align: right;
            background-color: #fff;
            position: relative;
            > .section-left {
              float: left;
              > a {
                line-height: 50px;
                margin-left: 32px;
              }
              > .shopping-total {
                margin-left: 16px;
                padding-left: 16px;
                border-left: 1px solid #eee;
                color: #757575;
                > span {
                  color: #ff6700;
                }
              }
            }
            > .total-price {
              padding-left: 13px;
              color: #ff6700;
              > span {
                font-size: 30px;
              }
              > a {
                display: inline-block;
                width: 200px;
                height: 48px;
                line-height: 48px;
                font-size: 18px;
                margin-left: 50px;
                vertical-align: top;
                text-align: center;
                background-color: #ff6700;
                border-color: #ff6700;
                color: #fff;
              }
            }
          }
        }
      }
      > .shopping-recommend {
        margin: 60px 0 0;
        > .recommend-title {
          position: relative;
          height: 50px;
          font-size: 30px;
          font-weight: 400;
          color: #757575;
          border-top: 1px solid #e0e0e0;
          > span {
            position: absolute;
            top: -20px;
            left: 372px;
            height: 40px;
            width: 482px;
            line-height: 40px;
            text-align: center;
            display: block;
            background-color: #f5f5f5;
          }
        }
        > .recommend-body {
          > .recommend-list {
            margin: 0 0 0 -14px;
            > .recommend-item {
              float: left;
              width: 234px;
              height: 300px;
              margin: 0 0 14px 14px;
              position: relative;
              overflow: hidden;
              background-color: #fff;
              text-align: center;
              &:hover > .recommend-action {
                transform: translate3d(0, 0, 0);
              }
              > a {
                font-size: 14px;
                > img {
                  display: block;
                  margin: 40px auto 20px;
                  width: 140px;
                  height: 140px;
                }
                > .recommend-name {
                  margin: 0 10px 10px;
                  height: 18px;
                  text-overflow: ellipsis;

                  white-space: nowrap;
                  overflow: hidden;
                  color: #333;
                }
                > .recommend-price {
                  margin-bottom: 10px;
                  color: #ff6700;
                }
                > .recommend-tips {
                  position: relative;
                  color: #757575;
                }
              }
              > .recommend-action {
                position: relative;
                left: 0;
                bottom: 16px;
                width: 100%;
                transform: translate3d(0, 200%, 0);
                transition: all 0.4s;
                > a {
                  width: 120px;
                  border: 1px solid #ff6700;
                  background: #fff;
                  color: #ff6700;
                  height: 28px;
                  font-size: 12px;
                  line-height: 28px;
                  display: inline-block;
                  transition: all 0.5s;
                  &:hover {
                    background: #ff6700;
                    color: white;
                  }
                }
              }
              > .recommend-notice {
                position: absolute;
                top: 0;
                left: 0;
                z-index: 5;
                width: 100%;
                > .notice {
                  background: #83c44e;
                  border-color: #83c44e;
                  color: white;
                  display: block;
                  width: 100%;
                  height: 38px;
                  border: 1px solid #b0b0b0;
                  font-size: 14px;
                  line-height: 38px;
                  text-align: center;
                  transition: all 0.4s;
                }
              }
            }
          }
        }
      }
    }
  }
}

